package com.fitsoftwareprocess.mobilemap;

import com.fitsoftwareprocess.mobilemap.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class DatabaseSample extends Activity implements OnClickListener {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.maindata);
View button1Click = findViewById(R.id.btnSave);
button1Click.setOnClickListener(this);
View button2Click = findViewById(R.id.btnCheck);
button2Click.setOnClickListener(this); 
}
public void onClick(View v) {
// TODO Auto-generated method stub
switch(v.getId()){

case R.id.btnSave:
Intent i = new Intent(this, SaveData.class); 
startActivity(i);
break;
case R.id.btnCheck:
Intent i1 = new Intent(this, CheckData.class); 
startActivity(i1);
break;
}
}
}


